how to get full path of a unix file

ON MAC:

1. Drag the file from finder to a terminal. Yes, pull it out with some effort and just drop it right there…

2. The full path will magically show up in no time!

ON LINUX

http://stackoverflow.com/questions/5265702/how-to-get-full-path-of-a-file According to Stackoverflow, you should do:

readlink -f file.txt

ON BOTH:

find $PWD -iname “*” -maxdepth 1

find $PWD -maxdepth 1

Tags: , , , ,

Comments are closed.